public class Takeaway {//食物订餐的实体集
    private int id;
    private String name;
    private int portion;
    private double price;
    private int thumbs;

    public Takeaway() {
    }

    public Takeaway(int id, String name, int portion, double price, int thumbs) {
        this.id = id;
        this.name = name;
        this.portion = portion;
        this.price = price;
        this.thumbs = thumbs;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPortion() {
        return portion;
    }

    public void setPortion(int portion) {
        this.portion = portion;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getThumbs() {
        return thumbs;
    }

    public void setThumbs(int thumbs) {
        this.thumbs = thumbs;
    }
}
